summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlat9nq <22451773+lat9nq@users.noreply.github.com>2023-06-18 02:53:39 +0200
committerlat9nq <22451773+lat9nq@users.noreply.github.com>2023-06-18 02:53:39 +0200
commitb99c4dd568fa12a833eeae25caeb9c0b1887465b (patch)
treecbbcbcfd2d83e596725a84036a8aee570f5d45a8
parentnx_tzdb: Directly reference variables in if statements (diff)
downloadyuzu-b99c4dd568fa12a833eeae25caeb9c0b1887465b.tar
yuzu-b99c4dd568fa12a833eeae25caeb9c0b1887465b.tar.gz
yuzu-b99c4dd568fa12a833eeae25caeb9c0b1887465b.tar.bz2
yuzu-b99c4dd568fa12a833eeae25caeb9c0b1887465b.tar.lz
yuzu-b99c4dd568fa12a833eeae25caeb9c0b1887465b.tar.xz
yuzu-b99c4dd568fa12a833eeae25caeb9c0b1887465b.tar.zst
yuzu-b99c4dd568fa12a833eeae25caeb9c0b1887465b.zip
-rw-r--r--src/core/hle/service/time/time_zone_service.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/core/hle/service/time/time_zone_service.cpp b/src/core/hle/service/time/time_zone_service.cpp
index e8273e152..8171c82a5 100644
--- a/src/core/hle/service/time/time_zone_service.cpp
+++ b/src/core/hle/service/time/time_zone_service.cpp
@@ -112,20 +112,14 @@ void ITimeZoneService::LoadTimeZoneRule(HLERequestContext& ctx) {
LOG_DEBUG(Service_Time, "called, location_name={}", location_name);
TimeZone::TimeZoneRule time_zone_rule{};
- if (const Result result{
- time_zone_content_manager.LoadTimeZoneRule(time_zone_rule, location_name)};
- result != ResultSuccess) {
- IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(result);
- return;
- }
+ const Result result{time_zone_content_manager.LoadTimeZoneRule(time_zone_rule, location_name)};
std::vector<u8> time_zone_rule_outbuffer(sizeof(TimeZone::TimeZoneRule));
std::memcpy(time_zone_rule_outbuffer.data(), &time_zone_rule, sizeof(TimeZone::TimeZoneRule));
ctx.WriteBuffer(time_zone_rule_outbuffer);
IPC::ResponseBuilder rb{ctx, 2};
- rb.Push(ResultSuccess);
+ rb.Push(result);
}
void ITimeZoneService::ToCalendarTime(HLERequestContext& ctx) {